#
# Makefile for NewLife module: init.ko
#
export CC := i386-elf-g++ -fno-exceptions -g -c
export AS := nasm -f elf
export LD := i386-elf-ld
MAKE := make

## CONFIGURATION
# Directory of include file
#export INC_DIR := ../include
#CC += -I $(INC_DIR)/
#AS += -I $(INC_DIR)/asm-inc/
# Directory of intermedia/object file
export OBJ_DIR := /home/forever043/SVN/build/modules/ipcTest
export VPATH := $(OBJ_DIR)

all : $(OBJ_DIR)/ipc.ko

$(OBJ_DIR)/ipc.ko : $(OBJ_DIR)/ipc.o
	$(LD) -T linker.ld -o $@ $(OBJ_DIR)/ipc.o

$(OBJ_DIR)/ipc.o : ipc.s
	$(AS) -o $@ ipc.s


rebuild : clean all

tar :

install :
	cp $(OBJ_DIR)/*.ko /home/NewLife/boot/

clean :
	- rm $(OBJ_DIR)/*.*

.PHONY : all tar clean rebuild install
